package com.gradumate.shared;

import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class LoginToken implements IsSerializable {
	
	@Persistent
	@PrimaryKey
	private String token;
	@Persistent
	private String gebruikerEmail;
	@Persistent
	private int function;
	@Persistent
	private String studentEmail;
	
	/**
	 * @return the token
	 */
	public String getToken() {
		return token;
	}
	
	/**
	 * @param token the token to set
	 */
	public void setToken(String token) {
		this.token = token;
	}
	
	/**
	 * @return the gebruikerEmail
	 */
	public String getGebruikerEmail() {
		return gebruikerEmail;
	}
	
	/**
	 * @param gebruikerEmail the gebruikerEmail to set
	 */
	public void setGebruikerEmail(String gebruikerEmail) {
		this.gebruikerEmail = gebruikerEmail;
	}
	
	/**
	 * @return the function
	 */
	public int getFunction() {
		return function;
	}
	
	/**
	 * @param function the function to set
	 */
	public void setFunction(int function) {
		this.function = function;
	}

	/**
	 * @return the student
	 */
	public String getStudentEmail() {
		return studentEmail;
	}

	/**
	 * @param student the student to set
	 */
	public void setStudentEmail(String studentEmail) {
		this.studentEmail = studentEmail;
	}
}
